{include file="$AdminFullPath/skins/$DefaultSkin/header.tpl" title=foo}

<table width="100%">
  <tr>
    <td class="module_title" nowrap>
      <a href="index.php">{$SiteTitle}</a> &raquo; <a href="{$PHPSELF}?mod={$mod}">{$OrbitFAQTitle} </a>
    </td>
    <td class="action_buttons" nowrap>
      <a href="{$PHPSELF}?mod={$mod}&action=clear"><img src="skins/{$DefaultSkin}/images/clear.png" style="border: 0px; vertical-align: bottom;" alt="Clear Mailbox" title="Clear Mailbox"></a>
      <a href="{$PHPSELF}?mod={$mod}"><img src="skins/{$DefaultSkin}/images/reload.png" style="border: 0px; vertical-align: bottom;" alt="Refresh Mailbox" title="Refresh Mailbox"></a>
    </td>
  </tr>
</table>
<br />

{if $message != ''}
<table width="100%" class="message_tbl">
  <tr>
    <td style="vertical-align: bottom;" width="20">
      <img src="skins/{$DefaultSkin}/images/notice.png">
    </td>
    <td class="message" nowrap>
      {$message}
    </td>
  </tr>
</table>
<br />
{/if}

<table cellspacing="1" class="index_body">
  <tr>
    <td class="row3 one">id</td>
    <td class="row3 two">subject & message</td>
    <td class="row3 two">from</td>
    <td class="row3 two"><a href="index.php?mod={$mod}&show=all">status</a></td>
    <td class="row3 two" colspan="6"><center>actions</center></td>
  </tr>
  {section name=MsgListing loop=$MsgListing}
  <tr>
    <td class="row{$MsgListing[MsgListing].msg_row} one">{$MsgListing[MsgListing].msg_id}</td>
    <td class="row{$MsgListing[MsgListing].msg_row} two">
      <h3>{$MsgListing[MsgListing].msg_subject}</h3>
      {$MsgListing[MsgListing].msg_message}<br />
    </td>
    <td class="row{$MsgListing[MsgListing].msg_row} two">
      {$MsgListing[MsgListing].msg_from_name} ({$MsgListing[MsgListing].msg_from_email})  (<a href="{$PHP_SELF}?mod={$mod}&action=ban&posted={$MsgListing[MsgListing].msg_from_email}&type=email">ban</a>)<br />
      {$MsgListing[MsgListing].msg_downloaded|date_format:"%D %r"}
    </td>
    <td class="row{$MsgListing[MsgListing].msg_row} one" nowrap>
      {if $MsgListing[MsgListing].msg_status == '0'}
        pending
      {/if}
      {if $MsgListing[MsgListing].msg_status == '1'}
        archived
      {/if}
    </td>
    <td class="row{$MsgListing[MsgListing].msg_row} one" nowrap>
      <a href="{$PHP_SELF}?mod={$mod}&action=markasqn&msg={$MsgListing[MsgListing].msg_id}">mark as question</a>
    </td>
    <!-- This may be added in later
    <td class="row{$MsgListing[MsgListing].msg_row} one" nowrap>
      <a href="{$PHP_SELF}?mod={$mod}&action=markasspam&msg={$MsgListing[MsgListing].msg_id}">mark as spam</a>
    </td>
    -->
    <td class="row3 one" nowrap>
      <a href="{$PHP_SELF}?mod={$mod}&action=preview&msg={$MsgListing[MsgListing].msg_id}">preview</a>
    </td>
    <td class="row3 one" nowrap>
      <a href="{$PHP_SELF}?mod={$mod}&action=reply&msg={$MsgListing[MsgListing].msg_id}">reply</a>
    </td>
    <td class="row3 one" nowrap>
      <a href="{$PHP_SELF}?mod={$mod}&action=forward&msg={$MsgListing[MsgListing].msg_id}">forward</a>
    </td>
    <td class="row3 one" nowrap>
      <a href="{$PHP_SELF}?mod={$mod}&action=archive&msg={$MsgListing[MsgListing].msg_id}">archive</a>
    </td>
    <td class="row3 one" nowrap>
      <a href="{$PHP_SELF}?mod={$mod}&action=delete&msg={$MsgListing[MsgListing].msg_id}">delete</a>
    </td>
  </tr>
  {/section}
</table>

{include file="$AdminFullPath/skins/$DefaultSkin/footer.tpl"}